package edu.hrbu.redis02.constant;

/**
 * @author 徐登宇
 */
public class RedisConst {

    public static final int INIT_GOODS_COUNT = 0;

    public static final int GOODS_SALE_COUNT = 10;

    // 单位都是秒
    public static final int CODE_KEY_TTL = 120;
    public static final int LOGIN_KEY_TTL = 1800;
    public static final int GOODS_SALE_TTL = 60;

    public static final String CODE_KEY = "code:key:";
    public static final String LOGIN_KEY = "login:key:";
    public static final String GOODS_KEY = "goods:key:";
//    public static final String ORDER_KEY = "order:key:";

    public static final String GOODS_BAK_POST = ":bak";

    private RedisConst() {
    }
}
